alien_0 = {"color": "green", "points": 5}
alien_1 = {"color": "yellow", "points": 10}
alien_2 = {"color": "black", "points": 6}

# key find value
print(alien_0["color"])  # if key not exist make wrong

point_value = alien_0.get("points", "No points value assigned.")  # if key exist -> return value  or  return default str
print(point_value)

# append
alien_0["x_position"] = 0
alien_0["y_position"] = 25
print(alien_0)

# change value
alien_0["x_position"] = 5
print(alien_0)

# del pair
del alien_0["points"]
print(alien_0)

for key, value in alien_0.items():
    print(f"\nkey: {key}")
    print(f"val: {value}")

print("\n")

for key in alien_0.keys():
    print(key)

print("\n")

for value in alien_0.values():
    print(value)

list1 = [alien_0, alien_1, alien_2]  # list storage dictionaries

# use dictionary storage list
pizza = {
    "crust": "thick",
    "toppings": ["mushroom", "extra cheese"],
}

# dictionary storage dictionaries
aliens = {
    alien_0,
    alien_1,
    alien_2
}

